import request from '@/utils/request'

export function getWoolList(params) {
    return request({
        url: '/marketing/pullWool/findListPullWool',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        'pageNum': params.pageNum,
        'pageSize': params.pageSize
        },
        method: 'get',
        params:params
    })
}


export function delBottom(rowId) {
    return request({
        url: '/marketing/pullWool/deleteById?id='+rowId,
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'delete',
    })
}
export function updataForm(data) {
    return request({
        url: '/marketing/pullWool/updatePullWool',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'POST',
        data
    })
}
export function createForm(data) {
    return request({
        url: '/marketing/pullWool/save',
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'POST',
        data
    })
}

export function changeStatus(data) {
    return request({
        url: '/marketing/pullWool/updateStatus?id='+data.id+'&status='+data.status,
        headers: {
        'Content-Type': 'application/json;charset=UTF-8',
        },
        method: 'get',
    })
}